package com.iszhangsc.backup.param.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.iszhangsc.backup.param.serialize.ReadableFileSizeSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 数据库表信息VO对象
 * </p>
 *
 * @author zhāngshìchāng
 * @date 2020/12/19 2:28 下午
 */
@Data
public class DatabaseTableVO {

    @ApiModelProperty(value = "表名称", example = "user")
    private String tableName;

    @ApiModelProperty(value = "表注释名称", example = "用户管理")
    private String tableComment;

    @JsonSerialize(using = ReadableFileSizeSerialize.class)
    @ApiModelProperty(value = "数据库表大小", example = "22MB")
    private Long dataLength;
}
